From 3636328e69078d233c14f62a348e41a1e03711f4 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 4 Sep 2004 02:55:13 +0000 Subject: [PATCH] Don't print out attributes for the root node. (#151752, Lorenzo Gil MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fri Sep 3 22:45:03 2004 Matthias Clasen * gtk/gtkuimanager.c (print_node): Don't print out attributes for the root node. (#151752, Lorenzo Gil Sánchez) --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ gtk/gtkuimanager.c | 15 +++++++++------ 5 files changed, 29 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 93a8896317..eaa86b3cbd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Sep 3 22:45:03 2004 Matthias Clasen + + * gtk/gtkuimanager.c (print_node): Don't print out attributes + for the root node. (#151752, Lorenzo Gil Sánchez) + Sat Sep 4 02:38:57 2004 Søren Sandmann * gtk/gtktoolbar.c (position): Accelerate the animation when it diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 93a8896317..eaa86b3cbd 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Fri Sep 3 22:45:03 2004 Matthias Clasen + + * gtk/gtkuimanager.c (print_node): Don't print out attributes + for the root node. (#151752, Lorenzo Gil Sánchez) + Sat Sep 4 02:38:57 2004 Søren Sandmann * gtk/gtktoolbar.c (position): Accelerate the animation when it diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 93a8896317..eaa86b3cbd 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Fri Sep 3 22:45:03 2004 Matthias Clasen + + * gtk/gtkuimanager.c (print_node): Don't print out attributes + for the root node. (#151752, Lorenzo Gil Sánchez) + Sat Sep 4 02:38:57 2004 Søren Sandmann * gtk/gtktoolbar.c (position): Accelerate the animation when it diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 93a8896317..eaa86b3cbd 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Fri Sep 3 22:45:03 2004 Matthias Clasen + + * gtk/gtkuimanager.c (print_node): Don't print out attributes + for the root node. (#151752, Lorenzo Gil Sánchez) + Sat Sep 4 02:38:57 2004 Søren Sandmann * gtk/gtktoolbar.c (position): Accelerate the animation when it diff --git a/gtk/gtkuimanager.c b/gtk/gtkuimanager.c index 7133be1f0e..459f97102c 100644 --- a/gtk/gtkuimanager.c +++ b/gtk/gtkuimanager.c @@ -2673,12 +2673,15 @@ print_node (GtkUIManager *self, g_string_append_printf (buffer, open_tag_format[mnode->type], indent_level, ""); - if (mnode->name) - g_string_append_printf (buffer, " name=\"%s\"", mnode->name); - - if (mnode->action_name) - g_string_append_printf (buffer, " action=\"%s\"", - g_quark_to_string (mnode->action_name)); + if (mnode->type != NODE_TYPE_ROOT) + { + if (mnode->name) + g_string_append_printf (buffer, " name=\"%s\"", mnode->name); + + if (mnode->action_name) + g_string_append_printf (buffer, " action=\"%s\"", + g_quark_to_string (mnode->action_name)); + } g_string_append (buffer, close_tag_format[mnode->type] ? ">\n" : "/>\n"); -- 2.30.2